package com.jdrx.sw.sewage.common.enums;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 新的PLC泵状态
 * 判断泵(风机)状态
 * 需要4个参数 参数后缀为TZ,GP,BP,GZ 分别为停止，工频，变频，故障
 * 0为false 1为true
 *
 *
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@Getter
public enum EPLCpumbStatus {
    STOP(1, "TZ"),
    POWERFREQUENCY(1, "GP"),
    FREQUENCYCONVERSION(1, "BP"),
    ERROR(1, "GZ");
    private Integer value;
    private String name;
    private static Map<Integer, EPLCpumbStatus> enumMap = new HashMap();

    EPLCpumbStatus(Integer value, String name) {
        this.value = value;
        this.name = name;
    }
}
